package com.lz.demo10;

/**
 * @ClassName Ant
 * @Description 蚂蚁类
 * @Author 2214361854
 * @Date 2022/5/28 15:25
 * @Version 1.0
 */
public class Ant extends Insect implements FlyAnimal{
    @Override
    public void fly() {
        System.out.println("蚂蚁飞啦~");
    }
    @Override
    public void spawn() {
        System.out.println("蚂蚁的产卵数为："+eggNumber);
    }
}

